Skip to content

Create monorepo and typeScript react base project#36

Open
handreyrc wants to merge 53 commits intoserverlessworkflow:mainfrom
handreyrc:monorepo-setup
Open

Create monorepo and typeScript react base project#36
handreyrc wants to merge 53 commits intoserverlessworkflow:mainfrom
handreyrc:monorepo-setup

Conversation

@handreyrc
Copy link

Closes:
Issue#8
Issue#14

This PR aims to:

  • Setup the monorepo to host Serverless Workflow Visual Editor components
  • Setup ts / react base project / package for the development of the diagram-editor component.
  • It shall be possible to build repo packages in dev / prod mode
  • It shall be possible to run storybook in dev mode and then test / debug "DiagramEditor" sample component

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bootstraps a pnpm-based monorepo for the Serverless Workflow Visual Editor, adding a shared ESLint/Prettier setup and an initial TypeScript + React package (serverless-workflow-diagram-editor) with Storybook, placeholder UI, and basic test scaffolding.

Changes:

  • Add monorepo workspace configuration, shared TypeScript configs, and root-level tooling (ESLint/Prettier/pnpm).
  • Introduce a shared @serverless-workflow-settings/eslint-config package and apply it at the repo root and in the diagram editor package.
  • Create the serverless-workflow-diagram-editor package with Storybook stories/assets and an initial PatternFly-based DiagramEditor placeholder component.

Reviewed changes

Copilot reviewed 37 out of 58 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
tsconfig.test.json Adds a dedicated tsconfig for tests (jest/testing-library types, noEmit).
tsconfig.base.json Introduces shared TS compiler defaults for packages.
pnpm-workspace.yaml Defines workspace packages and build dependency allowlist.
packages/serverless-workflow-diagram-editor/tsconfig.json Package TS build config (src → dist).
packages/serverless-workflow-diagram-editor/tests/setupTests.ts Jest DOM setup entry for tests.
packages/serverless-workflow-diagram-editor/tests/react-flow/Sample.test.tsx Adds placeholder test file for react-flow area.
packages/serverless-workflow-diagram-editor/tests/core/sample.test.ts Adds placeholder test file for core area.
packages/serverless-workflow-diagram-editor/stories/page.css Storybook example styles for Page.
packages/serverless-workflow-diagram-editor/stories/header.css Storybook example styles for Header.
packages/serverless-workflow-diagram-editor/stories/button.css Storybook example styles for Button.
packages/serverless-workflow-diagram-editor/stories/assets/youtube.svg Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/tutorials.svg Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/styling.png Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/share.png Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/github.svg Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/docs.png Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/discord.svg Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/context.png Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/avif-test-image.avif Adds Storybook asset used for media handling examples.
packages/serverless-workflow-diagram-editor/stories/assets/assets.png Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/assets/accessibility.svg Adds Storybook example asset.
packages/serverless-workflow-diagram-editor/stories/Page.tsx Adds Storybook example Page component.
packages/serverless-workflow-diagram-editor/stories/Page.stories.ts Adds Storybook stories + interaction test for Page.
packages/serverless-workflow-diagram-editor/stories/Header.tsx Adds Storybook example Header component.
packages/serverless-workflow-diagram-editor/stories/Header.stories.ts Adds Storybook stories for Header.
packages/serverless-workflow-diagram-editor/stories/DiagramEditor.tsx Adds Storybook wrapper around the package’s DiagramEditor component.
packages/serverless-workflow-diagram-editor/stories/DiagramEditor.stories.ts Adds the initial DiagramEditor story.
packages/serverless-workflow-diagram-editor/stories/Configure.mdx Adds Storybook configuration/learning MDX page and related UI.
packages/serverless-workflow-diagram-editor/stories/Button.tsx Adds Storybook example Button component.
packages/serverless-workflow-diagram-editor/stories/Button.stories.ts Adds Storybook stories for Button.
packages/serverless-workflow-diagram-editor/src/react-flow/README.md Adds placeholder docs for the react-flow sub-area.
packages/serverless-workflow-diagram-editor/src/index.ts Adds package export barrel.
packages/serverless-workflow-diagram-editor/src/diagram-editor/index.ts Adds diagram-editor export barrel.
packages/serverless-workflow-diagram-editor/src/diagram-editor/DiagramEditor.tsx Adds initial DiagramEditor placeholder implementation using PatternFly components.
packages/serverless-workflow-diagram-editor/src/core/README.md Adds placeholder docs for core sub-area.
packages/serverless-workflow-diagram-editor/package.json Adds package scripts (build/test/storybook), deps/devDeps.
packages/serverless-workflow-diagram-editor/eslint.config.js Applies shared ESLint flat config to the package.
packages/serverless-workflow-diagram-editor/README.md Adds package-level build/run instructions.
packages/serverless-workflow-diagram-editor/.storybook/preview.ts Adds Storybook preview configuration (controls matchers).
packages/serverless-workflow-diagram-editor/.storybook/main.ts Adds Storybook main config (addons, stories glob, telemetry off).
packages/eslint-config/package.json Adds a shared ESLint config package definition.
packages/eslint-config/index.js Implements shared ESLint flat config (TS/React/Prettier/hooks + ignores).
package.json Adds root scripts and pins engines/pnpm for the monorepo.
eslint.config.js Applies shared ESLint flat config at repo root.
README.md Adds monorepo prerequisites and build instructions.
LICENSE Fixes formatting/line-numbering at file end.
GOVERNANCE.md Fixes formatting/line-numbering at file end.
CONTRIBUTING.md Updates build instructions to pnpm and updates new-package script naming.
CODE_OF_CONDUCT.md Fixes formatting/line-numbering at file end.
.prettierrc Adds Prettier configuration.
.npmrc Adds npm config to ignore workspace root check.
.gitignore Adds/extends ignore patterns for node/dist/storybook artifacts and IDE files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 12, 2026 15:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 38 out of 59 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 13, 2026 06:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 41 out of 62 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 13, 2026 08:29
@handreyrc
Copy link
Author

@fantonangeli , @lornakelly , @ricardozanini @JBBianchi;

This PR is good enough for human review!

Thanks!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 43 out of 64 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 13, 2026 08:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 43 out of 64 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: handreyrc <handrey.cunha@gmail.com>

# Conflicts:
#	package.json
Signed-off-by: handreyrc <handrey.cunha@gmail.com>
Signed-off-by: handreyrc <handrey.cunha@gmail.com>
Signed-off-by: handreyrc <handrey.cunha@gmail.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 45 out of 67 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: handreyrc <handrey.cunha@gmail.com>
Signed-off-by: handreyrc <handrey.cunha@gmail.com>
Copilot AI review requested due to automatic review settings March 17, 2026 22:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 45 out of 67 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

handreyrc and others added 3 commits March 17, 2026 18:37
Signed-off-by: handreyrc <handrey.cunha@gmail.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
…execution

Fix linter and formatter execution
Copilot AI review requested due to automatic review settings March 18, 2026 18:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 47 out of 69 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fantonangeli and others added 3 commits March 18, 2026 19:44
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: handreyrc <handrey.cunha@gmail.com>
…etup-fix-formatter-execution

Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
@fantonangeli
Copy link
Contributor

@handreyrc I'm still finishing my PR, is on the way

Copilot AI review requested due to automatic review settings March 18, 2026 21:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 47 out of 69 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fantonangeli and others added 3 commits March 18, 2026 22:41
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI review requested due to automatic review settings March 18, 2026 22:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 47 out of 69 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Signed-off-by: handreyrc <handrey.cunha@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants